import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import '@/assets/css/normalize.css'
import '@/assets/css/reset.css'

import '@/assets/fonts/iconfont.css'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import * as filter from'@/filters/index';
Object.keys(filter).forEach(v=>{
  Vue.filter(v,filter[v])
})

import * as directives from'@/directives/index';
Object.keys(directives).forEach(v=>{
  Vue.filter(v,{
    inserted:directives[v]
  })
})

import * as echarts from "echarts";

Vue.prototype.$echarts=echarts

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
